{
    "app-id": "sucks.copyright.demixedgtk",
    "runtime": "org.gnome.Platform",
    "runtime-version": "3.30",
    "sdk": "org.gnome.Sdk",
    "command": "demixedgtk",
    "finish-args": [
        "--filesystem=xdg-music",
        "--share=network",
        "--share=ipc",
        "--socket=x11",
        "--socket=wayland",
        "--filesystem=xdg-run/gvfs:ro",
	"--talk-name=org.gtk.vfs",
	"--talk-name=org.gtk.vfs.*",
        "--filesystem=xdg-run/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf",
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
    ],
    "build-options": {
        "cflags": "-O2 -g",
        "cxxflags": "-O2 -g",
        "env": {
            "V": "1"
        }
    },
    "cleanup": [
        "/include",
        "/lib/pkgconfig",
        "/man",
        "/share/doc",
        "/share/gtk-doc",
        "/share/man",
        "/share/pkgconfig",
        "*.la",
        "*.a"
    ],
    "modules": [
    	{   "name" : "libhandy",
            "buildsystem" : "meson",
            "config-opts": [
                "-Dglade_catalog=disabled",
                "-Dvapi=false",
                "-Dtests=false",
                "-Dexamples=false"
            ],
            "sources" : [
                {
                    "type" : "git",
                    "url" : "https://source.puri.sm/Librem5/libhandy.git"
                }
            ]
        },
        "python3-mutagen.json",
        "python3-blowfish-pyaes.json",
        "python3-deezer-python.json",
    	{
    	    "name": "demixed-dl",
    	    "buildsystem": "simple",
            "build-commands": [
                "pip3 install . --prefix=${FLATPAK_DEST}"
            ],
            "sources": [
                {
                    "type": "git",
                    "url" : "https://notabug.org/RemixDevs/demixed-dl.git"
                }
            ]
    	},
        {
            "name": "demixedgtk",
            "buildsystem": "meson",
            "sources": [
                {
                    "type": "git",
                    "url": "https://notabug.org/RemixDevs/demixed-gtk.git"
                }
            ]
        }
    ]
}
